package org.ithang.nio;

import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;

import org.junit.Test;

public class PathsTest {

	@Test
	public void test(){
		Path path=Paths.get("src","main","resources","app.peroperties");
		
		boolean exist=Files.exists(path, LinkOption.NOFOLLOW_LINKS);
		System.out.println(exist);
		System.out.println("fileName="+path.getFileName());
		System.out.println("uri="+path.toUri());
		System.out.println("nameCount="+path.getNameCount());
		
		System.out.println("fileSystem="+path.getFileSystem());
	}
	
	
	
}
